<?php $this->extend('comm/page');?>

<form class="layui-form form-horizontal" action="<?php echo $container->url->build('',['idx' => $info['id']]); ?>" method="post">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">标题名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" name="title" value="<?php echo $info['title'];?>" lay-verify="required" lay-verType="tips" lay-reqText="请输入名称"
                placeholder="请输入名称" class="layui-input">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">客服席位数:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="number" name="seatnum" value="<?php echo $info['seatnum'];?>" lay-verify="required|number" lay-verType="tips"
                lay-reqText="请输入客服席位数" placeholder="请输入客服席位数" class="layui-input">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">客服接待数:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="number" name="receptnum" value="<?php echo $info['receptnum'];?>" min="1" lay-verify="required|number" lay-verType="tips"
                lay-reqText="请输入客服接待数" placeholder="客服接待数" class="layui-input">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">Logo:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input type="text" class="form-control bootstrap-layui-input" lay-verify="required" lay-verType="tips" lay-reqText="请上传Logo" id="img" name="logo" value="<?php echo $info['logo'];?>" />
                <a href="javascript:;" id="img_upload" class="btn-upload-img input-group-addon">图片上传</a>
                <a href="javascript:;" class="btn-search-img input-group-addon">查找资源</a>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">主站地址:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="layui-input" name="home" lay-verify="required" lay-verType="tips" lay-reqText="请输入接入站地址" placeholder="接入站点地址" value="<?php echo $info['home'];?>" />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">联系电话:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="layui-input" name="moble" value="<?php echo $info['moble'];?>" />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">QQ:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="layui-input" name="qq" value="<?php echo $info['qq'];?>" />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">微信二维码:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input type="text" class="form-control bootstrap-layui-input" id="wechat" name="wechat" value="<?php echo $info['wechat'];?>" />
                <a href="javascript:;" id="wechat_upload" class="btn-upload-img input-group-addon">图片上传</a>
                <a href="javascript:;" class="btn-search-img input-group-addon">查找资源</a>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">额外二维码:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input type="text" class="form-control bootstrap-layui-input" id="qrcode" name="qrcode" value="<?php echo $info['qrcode'];?>" />
                <a href="javascript:;" id="qrcode_upload" class="btn-upload-img input-group-addon">图片上传</a>
                <a href="javascript:;" class="btn-search-img input-group-addon">查找资源</a>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">状态:</label>
        <div class="col-xs-12 col-sm-8">
            <?php echo $this->build_radios('status', ['1'=>'有效', '2'=>'无效'], $info['status'], [], true); ?>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">欢迎语:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea placeholder="请输入欢迎语" name="wellcome" class="layui-textarea"><?php echo $info['wellcome'];?></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">聊天工具栏:</label>
        <div class="col-xs-12 col-sm-8" style="position: relative; top: 10px;">
            <?php echo $this->build_checkboxs('tools[]', ['emoji' => '表情', 'link' => '链接', 'file' => '图片上传'], explode(',', $info['tools']), [], true); ?>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">JS加载工具栏:</label>
        <div class="col-xs-12 col-sm-8" style="position: relative; top: 10px;">
            <?php echo $this->build_checkboxs('display[]', ['moble' => '联系电话', 'qq' => 'QQ', 'wechat' => '微信', 'qrcode' => '二维码', 'top' => '回顶'], explode(',', $info['display']), [], true); ?>
        </div>
    </div>
    <div class="layui-form-item hidden layer-footer">
        <div class="col-xs-12 text-right">
            <button type="submit" class="btn btn-success" lay-submit lay-filter="submit">确认提交</button>
            <button type="reset" class="btn btn-default">重置</button>
        </div>
    </div>
</form>